package com.thssh.ui.lsn14.ext;

import android.view.View;
import android.view.ViewGroup;

import java.util.Set;

/**
 * @author zhangyugehu
 * @version V1.0
 * @date 2017/09/28
 * email: zhangyugehu@163.com
 */

public interface IAdapter {
    interface DataObserver{
        void onChanged(Set data);
    }

    void registerDataObserver(DataObserver observer);
    void unregisterDataObserver(DataObserver observer);

    int getCount();
    int getTypeCount();
    Object getItem(int position);
    View getView(int position, View convertView, ViewGroup parent);
    int getItemViewType(int position);

    void notifyDataSetChanged();
    boolean isEmpty();
}
